ShortPixel\Controller\AjaxController D

Total Complexity 164
Dependencies 16
Dependents 2
Total lines 1,140
Lines of code 792
Logical lines of code 589
Comment lines 62
Methods 42
Properties 1

Methods 42

Method Rating Maintainability Complexity Lines of code
ajaxRequest()
D
29
33 126
ajax_getComparerData()
A
42 13 50
checkProcessorKey()
A
47 10 34
loadLogFile()
A
43 8 48
ajax_getItemView()
A
46 8 37
refreshFolder()
S
47 6 37
applyBulkSelection()
S
47 5 36
optimizeItem()
S
54 5 19
startRestoreAll()
S
55 5 19
reOptimizeItem()
S
55 5 17
getItemEditWarning()
S
58 4 15
checkNonce()
S
57 4 15
browseFolders()
S
58 4 15
ajax_processQueue()
S
58 4 13
checkImageAccess()
S
54 3 23
addCustomFolder()
S
53 3 22
scanNextFolder()
S
57 3 17
removeCustomFolder()
S
56 3 17
send()
S
63 4 10
getProcessorKey()
S
63 4 10
ajax_checkquota()
S
55 2 20
markCompleted()
S
56 2 17
unMarkCompleted()
S
56 2 17
checkActionAccess()
S
58 2 15
cancelOptimize()
S
57 2 15
removeBackup()
S
61 2 12
removeAllData()
S
63 2 11
getInstance()
S
73 2 5
redoLegacy()
S
62 1 11
startRemoveLegacy()
S
68 1 7
startMigrateAll()
S
68 1 7
startBulk()
S
70 1 6
resetScanFolderChecked()
S
74 1 5
createBulk()
S
65 1 9
ajax_getBackupFolderSize()
S
66 1 8
ajax_proposeQuotaUpgrade()
S
69 1 7
finishBulk()
S
69 1 7
restoreItem()
S
63 1 10
onWpLrSyncMedia()
S
76 1 4
onWpLrUpdateMedia()
S
66 1 8
getMediaItem()
S
75 1 4
recheckActive()
S
68 1 7